﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ipi.MCC.Controls
{
    public class MCCItemsViewGrid : MCCViewGrid
    {
        public MCCItemsViewGrid() : base() { }

        protected override bool GetPropertiesMenuVisibiliy
        {
            get { return false; }
        }

        protected override string mtMCCContentID
        {
            get { return "mtMCCListContentID"; }
        }
        
        protected override string GetMethod
        {
            get { return "GetListItemDataTable"; }
        }

        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            bfTitle.Visible = false;

            smfName.HeaderText = Resources.Resources.MCCDocumentView_Title;
            smfName.TextFields = "Title";
            smfName.SortExpression = "Title";
            smfName.NavigateUrlFields = "ViewPropertiesURL";
            gvMCCContent.FilterDataFields = "DocIcon, Title";
        }
    }
}
